package edu.spec.wyn.week08.class2;

public class Frog extends Animal implements IAnimal,IAmphibious,IHibernate{
        public String amphibious;
        public Frog(){

        }
    public Frog(String name, String food, String area) {
        super(name,food,area);
    }

    @Override
    String findFood() {
        return super.getName()+"找"+getFood();
    }

    @Override
    String wholeLife() {
        return born()+"   "+findFood()+"   "+eat()+"   "+old()+"   "+sick()+"   "+die();
    }

    @Override
    public String amphibious() {
        return super.getName()+"既能在陆地生活也能在水里生活";
    }

    @Override
    public String born() {
        return super.getName()+"出生在水里";
    }

    @Override
    public String old() {
        return super.getName()+"一岁";
    }

    @Override
    public String sick() {
        return super.getName()+"会感冒";
    }

    @Override
    public String die() {
        return super.getName()+"会被人类吃掉";
    }

    @Override
    public String hibernate() {
        return super.getName()+"冬眠三个月";
    }
}
